package com.cqq.print.business.dao.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cqq.print.business.dao.domain.POrderDetail;
import com.cqq.print.business.dao.mapper.POrderDetailMapper;


/**
 * @author generated
 * @date 2015-07-01
 */


@Repository(value="pOrderDetailDao")
public class POrderDetailDaoImpl extends com.cqq.common.core.base.BaseDao implements com.cqq.print.business.dao.POrderDetailDao{

             @Autowired
             private POrderDetailMapper pOrderDetailMapper;



    public int deleteByPrimaryKey(Integer id){
        return pOrderDetailMapper.deleteByPrimaryKey(id);
    }

    public int insert(POrderDetail record){
        return pOrderDetailMapper.insert(record);
    }

    public int insertSelective(POrderDetail record){
        return pOrderDetailMapper.insertSelective(record);
    }

    public POrderDetail selectByPrimaryKey(Integer id){
        return pOrderDetailMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(POrderDetail record){
        return pOrderDetailMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(POrderDetail record){
        return pOrderDetailMapper.updateByPrimaryKey(record);
    }

	
	public List<POrderDetail> queryDetailsByOrderId(int orderId) {
		return pOrderDetailMapper.queryDetailsByOrderId(orderId);
	}

	
	public void deleteByOrderId(int orderId) {
		pOrderDetailMapper.deleteByOrderId(orderId);
	}



}